{% extends "tj3/tj3.html" %}


{% block content  %} 
<h2>Select Project</h2>
<form action="." method="post" enctype="multipart/form-data">
{{ select_project }}
<input type="submit" name="command" value="Select" class="button" />
</form>


<h2>Resource TJI</h2>
{% for r,a,b,c,d,e in resources %}
	resource 
	<a href={% url resource_edit r.id %}>{{r}}</a> 
	"{{r.first_name|capfirst}} {{r.last_name|capfirst}}"{}<br>
{% endfor %}

<!--- dump resource activities --->
{% for r,tasks,worklimits,timeoffs,bookings,journals in resources %}
<h2>{{r}}</h2>
<ul>
	<li>tasks:
	<ul>
		{% for t in tasks %}
			<li><a href={% url task_detail t.id %}>{{t}}</a>
		{% endfor %}
	</ul>
	
	<li>worklimits: 
	<ul>
		{% for w in worklimits %}
			<li><a href={% url worklimit_edit w.id %}>{{w}}</a>
		{% endfor %}
	</ul>
	
	<li>timeoffs:
	<ul>
		{% for t in timeoffs %}
			<li>{{t}}, {{t.memo}}
		{% endfor %}
	</ul>
	
	<li>bookings:
	<ul>
		{% for b in bookings %}
			<li><a href={% url booking_edit b.id %}>{{b}}</a>
		{% endfor %}
	</ul>
	
	<li>journals:
	<ul>
		{% for j in journals %}
			<li><a href={% url journal_edit j.id %}>{{j.summary}}</a>
		{% endfor %}
	</ul>
</ul>
{% endfor %}


 {% endblock content %}
